//
//  STextTableViewCell.m
//  PocketFM
//
//  Created by sun on 15/12/16.
//  Copyright © 2015年 Sun. All rights reserved.
//

#import "STextTableViewCell.h"
#import "ListCategoryModel.h"
#import <UIImageView+WebCache.h>
#import "ThemeModel.h"
@interface STextTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIImageView *icon;

@end
@implementation STextTableViewCell
+ (instancetype)cellWithTabelView:(UITableView *)tableView{
    static NSString *ID = @"STextTableViewCell";
    STextTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"STextTableViewCell" owner:nil options:nil] lastObject];
    }
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    return cell;
}

- (void)setModel:(ListCategoryModel *)model{
    _model = model;
    
    ThemeModel *mod = model.themeArray[1];
    self.title.text = mod.reSpecialDesc;
 
    [self.icon sd_setImageWithURL:[NSURL URLWithString:mod.img640_292]];
}
@end
